package com.xdf.zipperdye.dao.business;

import com.xdf.zipperdye.model.SysRole;
import com.xdf.zipperdye.model.SysRolep;
import com.xdf.zipperdye.model.SysUser;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysUserMapper {
    int deleteByPrimaryKey(Integer iid);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Integer iid);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    SysUser selectByUserId(String userid);

    List<SysRolep> selectUserObjPermissions(String userid);

    List<SysRole> selectRoles(int iid);

    List<SysUser> selectAll();
}